package com.chenjj.java.juc.tools.countdownlatch;

import java.util.concurrent.CountDownLatch;

public class NetworkHealthCheck extends AbstractHealthCheckService {

    public NetworkHealthCheck(CountDownLatch latch) {
        super("NetworkHealthCheck", latch);
    }

    @Override
    public void verifyService() {
        System.out.println("NetworkHealthCheck verifing...");
        try {
            Thread.sleep(8000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("NetworkHealthCheck verifing success");
    }
}
